package com.ruoyi.common.core.page;

import io.swagger.annotations.ApiParam;

public class PageQuery {

    @ApiParam(value = "分页查询时，指明要查询的页码，如果小于1，则按1查询，如果大于总页数，则查询最后一页", example = "1", defaultValue = "1")
    private int pageNo = 1;
    @ApiParam(value = "分页查询时，指明要查询的每页纪录数量，如果小于1，则按默认值10查询", example = "10", defaultValue = "10")
    private int pageSize = 10;

    /**
     * 构造函数
     */
    public PageQuery() {
    }

    public PageQuery(int pageNo, int pageSize) {
        this.setPageNo(pageNo);
        this.setPageSize(pageSize);
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
